<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/26 15:29
 */

namespace app\api\controller;

class Login extends Base
{
    public function login()
    {
       $login =  (new \app\api\logic\Login())->login();
       return $this->ajaxReturn($login);
    }

    //注册
    public function register()
    {
      $register =  (new \app\api\logic\Login())->register();
      return $this->ajaxReturn($register);
    }

    //修改资料
    public function changeInformation()
    {
      $changeInformation =  (new \app\api\logic\Login())->changeInformation();
      return $this->ajaxReturn($changeInformation);
    }

    //完善资料
    public function perfect()
    {
      $perfect =  (new \app\api\logic\Login())->perfect();
      return $this->ajaxReturn($perfect);
    }

    //忘记密码
    public function forget()
    {
       $forget =  (new \app\api\logic\Login())->forget();
       return $this->ajaxReturn($forget);
    }

    /**
     *第三方登录
     */
    public function other()
    {
        $other =  (new \app\api\logic\Login())->otherlogin();
        return $this->ajaxReturn($other);
    }

    /**
     *修改手机
     */
    public function bind()
    {
        $bind =  (new \app\api\logic\Login())->bind();
        return $this->ajaxReturn($bind);
    }
    /**
     *启动引导页
     */
    public function start()
    {
        $bind =  (new \app\api\logic\Login())->start();
        return $this->ajaxReturn($bind);
    }
}